package day05.toString;

import java.util.Objects;

public class EqualsDemo {
    public static void main(String[] args) {
//        Student s1=new Student("张三","23");
//        Student s2=new Student("张三","23");
//        System.out.println(s1==s2);
//        System.out.println(s1.equals(s2));
//        Student s=new Student("张三","23");
//       Student s=null;
//        String result = Objects.toString(s, "我在哪里");
//        System.out.println(result);
        Student s=new Student();
//        boolean result = Objects.isNull(s);
////        System.out.println(result);

        boolean result = Objects.nonNull(s);
        System.out.println(result);
    }
}
